2 -ex thread apply all bt full
3 -ex quit --batch
[New LWP 8297]
Core was generated by `./a.out 34400000000000000000000000'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  next_env_entry (position=<optimized out>) at arena.c:321
321	      if (__builtin_expect ((*current)[0] == 'M', 0)

Thread 1 (LWP 8297):
#0  next_env_entry (position=<optimized out>) at arena.c:321
        current = 0x38f0e058080
        result = <optimized out>
#1  ptmalloc_init () at arena.c:384
        runp = <optimized out>
        envline = 0x0
        di = {dli_fname = 0x30dabd18640 "/lib64/libc.so.6", dli_fbase = 0x30dab750000, dli_sname = 0x0, dli_saddr = 0x0}
        l = 0x30dabd18658
        s = <optimized out>
        hook = <optimized out>
#2  0x0000030dab7d3840 in ptmalloc_init () at hooks.c:29
No locals.
#3  malloc_hook_ini (sz=552, caller=<optimized out>) at hooks.c:31
No locals.
#4  0x0000030dab7bdde1 in __fopen_internal (filename=0x30dab8c45e3 "/proc/meminfo", mode=0x30dab8c2410 "rce", is32=1) at iofopen.c:69
        new_f = <optimized out>
#5  0x0000030dab7bde7f in _IO_new_fopen (filename=<optimized out>, mode=<optimized out>) at iofopen.c:97
No locals.
#6  0x0000030dab843e5e in phys_pages_info (format=format@entry=0x30dab8c462c "MemTotal: %ld kB") at ../sysdeps/unix/sysv/linux/getsysstats.c:291
        buffer = '\000' <repeats 5921 times>...
        result = -1
        fp = <optimized out>
#7  0x0000030dab844351 in __get_phys_pages () at ../sysdeps/unix/sysv/linux/getsysstats.c:335
No locals.
#8  0x0000030dab814b90 in posix_sysconf (name=85) at ../sysdeps/posix/sysconf.c:634
No locals.
#9  linux_sysconf (name=85) at ../sysdeps/unix/sysv/linux/sysconf.c:140
        procfname = <optimized out>
#10 __GI___sysconf (name=name@entry=85) at ../sysdeps/unix/sysv/linux/x86_64/sysconf.c:36
No locals.
#11 0x0000030dab786cca in __GI___qsort_r (b=0x303, n=128, s=8, cmp=0x14b490bb47 <cmp>, arg=0x0) at msort.c:187
        phys_pages = 0
        pagesize = 0
        save = <optimized out>
        size = 1024
        tmp = 0x0
        p = {s = 0, var = 3357252122336, cmp = 0xffffffffffffffff, arg = 0x38f0e057e90, t = 0xab760db8 <error: Cannot access memory at address 0xab760db8>}
#12 0x00000014b490be0a in main ()
No symbol table info available.
